require 'redmine'

Redmine::Plugin.register :redmine_project_reports do
  name 'Redmine Project Reports plugin'
  author 'Toshiyuki Ando r-labs'
  url "http://www.r-labs.org/repositories/show/project_reports" if respond_to?(:url)
  description 'This is a project report plugin for Redmine'
  version '0.1.0'
  requires_redmine :version_or_higher => '0.9.0'

  project_module :project_reports do
    # パーミッション設定。
    permission :view_project_reports, {:project_reports => [:index, :show]}, :require => :member
    permission :edit_project_reports_settings, {:project_reports_settings => [:edit]}, :require => :member
  end

  menu :project_menu, :project_reports, { :controller => :project_reports, :action => :index }, :param => :id, :caption => :label_project_reports
  

end
